package com.sczmgk.hotline.entity.newentity;


import com.sczmgk.hotline.entity.ChatMsgBean;

import java.util.Comparator;

public  class ChatMessageComparator implements Comparator<ChatMsgBean> {
    @Override
    public int compare(ChatMsgBean lhs, ChatMsgBean rhs) {
        long time1 = Long.valueOf(lhs.getMsgtime());
        long time2 = Long.valueOf(rhs.getMsgtime());
        return (int) (time1 - time2);
    }
}
